<?php

namespace App\Http\Controllers\Home;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use DB;
class ListController extends Controller
{
    //
    public function index()
    {
        // $num = $request -> input('num',10);
        // $keywords = $request -> input('keywords','');

        $data = DB::table('goods') -> get();
       
        // dd($data);
        // c pid = cname

        // return view('home.goods.index',['data' => $data, 'request' => $request -> all()]);
        return view('home.list.index',['data' => $data]);
    }
}
